package cn.kin.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.kin.pojo.Staff;

public interface StaffMapper {
	//根据id删除
    int deleteByPrimaryKey(Integer id);
    
    //根据员工号查询
    Staff selectByStaffNum(@Param("staffNum")String staffNum);
    
    //添加员工
    int insertStaff(Staff staff);
    
    //修改员工
    int updateStaff(Staff staff);
    
    //根据条件查询员工，分页
    List<Staff> selectByMap(Map map);
    
    //根据条件查询员工数
    int selectCountByMap(Map map);
}